MODULES=mult_journ.so toolbar.so # tooltips.so


all: plgn_example.so #edit/edit.d #mods.d lst_plugin/list.d  search/search.d 


clean:
	rm -Rf *.so
	rm -f mods.d
	cd lst_plugin && make clean
	cd search && make clean
	cd edit && make clean

mods.d: $(MODULES)

search/search.d: search/search.d
	cd search && make

lst_plugin/list.d: lst_plugin/list.d
	cd lst_plugin && make


edit/edit.d: edit/edit.d
	cd edit && make

cli_integration.so: cli_integration.c 
	$(CC) $(CFLAGS) -shared -o cli_integration.so -L../ -lejourn cli_integration.c `pkg-config gtk+-2.0 --libs --cflags` `pkg-config gthread-2.0 --libs --cflags`

tooltips.so: tooltips.c 
	$(CC) $(CFLAGS) -shared -o tooltips.so -L../ -lejourn tooltips.c `pkg-config gtk+-2.0 --libs --cflags` `pkg-config gthread-2.0 --libs --cflags`

toolbar.so: toolbar.c
	$(CC) $(CFLAGS) -shared -o toolbar.so -L../ -lejourn toolbar.c `pkg-config gtk+-2.0 --libs --cflags` `pkg-config gthread-2.0 --libs --cflags`

mult_journ.so: mult_journ.c 
	$(CC) $(CFLAGS) -shared -o mult_journ.so -L../ -lejourn mult_journ.c `pkg-config gtk+-2.0 --libs --cflags` `pkg-config gthread-2.0 --libs --cflags`

plgn_example.so: plgn_example.c
	$(CC) $(CFLAGS) -shared -o plgn_example.so -L../ -lejourn plgn_example.c
